package com.aliang.frame.service;

import com.aliang.frame.domain.Dept;
import com.aliang.frame.domain.User;
import com.aliang.frame.viewmodel.admin.dept.DeptPageRequestVM;
import com.aliang.frame.viewmodel.admin.dept.DeptPageResponseVM;
import com.aliang.frame.viewmodel.admin.dept.DeptRequestVM;

import java.util.List;

public interface DeptService extends BaseService<Dept>{
    List<Dept> page(DeptPageRequestVM model);

    void edit(DeptRequestVM model, User currentUser);

    DeptPageResponseVM deptToVM(Integer id);

    List<Dept> selectByCurrentUser(Integer deptId);

    List<Dept> selectAllDept();

}
